<?php

interface IDomainDefinition
{

  /**
   *
   * @param string $name
   * @param IDomObjDefinition $def
   * @return void
   */
  public function addObject($name, IDomObjDefinition $def);

  /**
   *
   * @param string $name
   * @return IDomObjDefinition
   */
  public function getObject($name);

  /**
   *
   * @return array
   */
  public function getObjects();

  /**
   *
   * @param string $name
   * @return boolean
   */
  public function hasObject($name);

}

?>